﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Events
{
    public class Event
    {
        private GameDate _GameDate;

        //sale, purchase, research done, crafter lvl up, random event, 
        public enum EventTypes
        {
            Sale,
            Purchase,
            Random_Event,
            Research

        }

        public EventTypes EventType { get; set; }
        
        public Event(GameDate gamedate, EventTypes type, String description, string keyword)
        {
            Date = gamedate;
            EventType = type;
            EventDescription = description;
            KeyWord = keyword;
        }

        public GameDate Date
        {
            get
            {
                return _GameDate;
            }
            set
            {                
                _GameDate = value;
            }
        }

        public String KeyWord { get; set; }
        public String EventDescription { get; set; }
      
        public override string ToString()
        {
            return Date + " > " + EventDescription;
        }
    }
}
